import { Inject } from '@midwayjs/core';
import { CoolController, BaseController } from '@cool-midway/core';
import { SupplierSupplierEntity } from '../../entity/supplier';
import { SupplierSupplierService } from '../../service/supplier';

/**
 * 供应商信息
 */
@CoolController({
  api: ['add', 'delete', 'update', 'info', 'list', 'page'],
  entity: SupplierSupplierEntity,
  service: SupplierSupplierService,
  pageQueryOp: {
    keyWordLikeFields: ['a.name', 'a.contactPerson', 'a.contactPhone'],
    fieldEq: ['a.level', 'a.status'],
  },
})
export class AdminSupplierSupplierController extends BaseController {
  @Inject()
  supplierSupplierService: SupplierSupplierService;
}
